import request from '../utils/request/index.js'

// 用户登录
export const loginAPI = (data) => {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

// 修改密码
export const changePasswordAPI = (password) => {
  return request({
    url: '/user/updatepd',
    method: 'put',
    data:{
      password
    }
  })
}